home *** CD-ROM | disk | FTP | other *** search
/ Trading on the Edge / Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin / pc / mac_file / vendor_d / neuralwa / nw2v50 / protowts.igb < prev    next >
Text File  |  1993-08-23  |  2KB  |  83 lines

  1. inst4.1     !Nov, 1992
  2. !****************************************************************
  3. !*                                *
  4. !*    Prototype weights                      *
  5. !*                                *
  6. !****************************************************************
  7. !
  8.  
  9. @LLsl                !Load super-layer
  10. =n0    Lpes            !Number of layers
  11. =LayN    0
  12.  
  13. ! Look for first layer that learns
  14.  
  15. :Koh1
  16. =n1    LayN            !remember layer
  17. +LayN    1            !next layer
  18. ?LayN    n0
  19. >bgt    KohEnd            !past output layer
  20. @LLly                !load the layer
  21. ?Llrn    0            !is this a preprocessing layer?
  22. >bne    Koh2            !we are past the preprocessing layers
  23. >br    Koh1            !next layer
  24.  
  25. :Koh2
  26. =n4    Lpes            !remember #PEs in Protoype layer
  27. =SPEl    LayN            !set up as selected (dest) layer
  28.  
  29. !Load previous layer
  30. =LayN    n1
  31. @LLly
  32. =n3    Lpes            !remember #PEs
  33. =NPEl    LayN            !set up as near (source) layer
  34.  
  35. ! Add probe
  36. =PNam    "ProtoWts"        !probe name
  37. @PbAS                !Add Probe
  38. @PbDC                !Delete all components
  39. @PALC                !Layer Connections
  40.  
  41. ! Now build the instrument
  42. @ILdD                !load default instrument
  43. =ITit    "Prototype Weights"    !Instrument title
  44. =IGTy    "Hinton"        !Graph Type
  45. =IGVr    "Weight"        !Variable
  46. =ITTy    "RMS"            !RMS Transformation Type
  47. =ITMd    0            !No transformation
  48. =IEpc    0            !No epoch
  49.  
  50. =Ignx    n3
  51. =Inpl    n4
  52. *Inpl    n3
  53. =Iwdt    7
  54. *Iwdt    n3
  55. ?Iwdt    140
  56. >bgt    Koh4
  57. =Iwdt    140
  58. :Koh4
  59. =Ihgt    7
  60. *Ihgt    n4
  61. ?Ihgt    100
  62. >bgt    Koh5
  63. =Ihgt    100
  64. :Koh5
  65.  
  66. =IGC1   IGC0            !show negative as unfilled
  67. =Ivmn    -1.0
  68. =Ivmx    1.0
  69. =ILnA    1            !Active in Learn
  70. =IRcA    0            !Inactive in recall
  71. =ILDv    100            !Every 100 iterations
  72. =ILRm    0
  73. =IRDv    0
  74. =IRRm    0
  75. =IPrb    PNam            !Point to probe
  76. =ICAc    0            !Convergence criterion inactive
  77. =ICTh    0.0            !Convergence Threshold
  78. !Let NeuralWorks figure out where to put instrument
  79. =x    0
  80. =y    0
  81. @IAdd                !Now create instrument
  82. :KohEnd
  83.